import request from '@/utils/request'
import scope from './scope'
const apiPrefix = `${process.env.VUE_APP_BASE_API}/${scope}/syspermission/`

// 菜单管理
export const getMenu = (params, config = {}) => {
  return request.get(apiPrefix + 'get', { params: params, ...config })
}
export const getMenuList = (params, config = {}) => {
  return request.get(apiPrefix + 'query', { params: params, ...config })
}
export const removeMenu = (params, config = {}) => {
  return request.post(apiPrefix + 'delete', params, config)
}
export const batchRemoveMenu = (params, config = {}) => {
  return request.put(apiPrefix + 'BatchsoftDelete', params, config)
}
export const editMenu = (params, config = {}) => {
  return request.post(apiPrefix + 'update', params, config)
}
export const addMenu = (params, config = {}) => {
  return request.post(apiPrefix + 'add', params, config)
}

